package org.zasadnyy.redlions.players.shared.remote;

import java.util.List;

import org.zasadnyy.redlions.players.shared.model.PlayerItem;
import org.zasadnyy.redlions.players.shared.model.TournamentItem;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("playersCrud")
public interface PlayersCrudRemote extends RemoteService {

	PlayerItem getPlayerById(String id);

	List<PlayerItem> getAllPlayers();

	void addOrEditPlayer(PlayerItem player);

	void deletePlayerById(String id);
	
	List<TournamentItem> getAllTournaments();
	
	void addOrEditTournment(TournamentItem tournament);
	
	void deleteTournamentById(String id);

}
